package com.woniuxy.springboot.configurationfile.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @Value("${org.giles.name}")
    private String name;
    @Value("${org.giles.school}")
    private String school;
    @GetMapping("/info")
    public String printInfo(){
        String info="我是"+school+"的"+name;
        return info;
    }

}
